using Smart.Model;

namespace Smart.Editor.TABLE
{
	public class RESOURCECONFIGExtend : Smart.Model.TABLE.ITableLoader
	{
		public string FileName => "RESOURCECONFIG";
		public void Init(TableData tableData)
		{
			RESOURCECONFIG.__data = tableData;
		}
		public object CreateAndBind(TableHandle handle)
		{
			var item = new RESOURCECONFIG();
			item.handle = handle;
			return item;
		}
		public void Bind(object item, TableHandle handle)
		{
			(item as RESOURCECONFIG).handle = handle;
		}
	}

	public class RESOURCECONFIG : ITable
	{
		public TableHandle handle;
		public static TableData __data;
		public int id
		{
			get
			{
				return __data.intValues[handle.intOffset + 0];
			}
		}
		public int multi
		{
			get
			{
				return __data.intValues[handle.intOffset + 1];
			}
		}
		public string desc
		{
			get
			{
				return __data.varStringValues[__data.intValues[handle.intOffset + 2] & 0xFFFFF];
			}
		}
		public string path
		{
			get
			{
				return __data.varStringValues[__data.intValues[handle.intOffset + 3] & 0xFFFFF];
			}
		}
		public string match
		{
			get
			{
				return __data.varStringValues[__data.intValues[handle.intOffset + 4] & 0xFFFFF];
			}
		}
		public string bundleLabelPrefix
		{
			get
			{
				return __data.varStringValues[__data.intValues[handle.intOffset + 5] & 0xFFFFF];
			}
		}
	}
}
